package com.ddone.demo.bean;

import lombok.Data;

/**
 * @author ddone
 * @date 2024/3/18-18:26
 */
@Data
public class Score {
    /**
     * 分数自增主键
     */
    private Integer id;
    /**
     * 学生分数
     */
    private Integer number;

    private Integer studentId;

    private Integer courseId;

    private Course course;
}
/*
drop table if exists score;
create table if not exists score(
    id int not null auto_increment comment '分数主键',
    number int default null comment '分数',
    student_id int default null comment '学生ID',
    course_id int default null comment '课程ID',
    primary key(id)
);
insert into score(number,student_id,course_id) values(80,1,1),(70,1,2),(60,2,1),(50,2,2);



 */
